<template>
     <div class="week">
          <p class="week_txt">周末去哪儿</p>
          <div class="week_box" v-for="(item,index) in weekList" :key="index">
            <img :src="item.imgUrl" alt="">
            <p class="t1">{{item.t1}}</p>
            <p class="t2">{{item.t2}}</p>
          </div>
     </div>
</template>

<script>
    export default {
        name: "Week",
      props:{
        weekList:Array
      },
        data () {
            return {
              // WeekList: [
              //   {"id": "0001", "imgUrl": "http://img1.qunarzz.com/sight/source/1811/f3/86173f863bef61.jpg_r_640x214_52b003ac.jpg", "t1": "京城人的周末撒欢地", "t2": "在帝都过周末，不仅仅是城中游"},
              //   {"id": "0002", "imgUrl": "http://img1.qunarzz.com/sight/source/1811/7e/476589267ebb41.jpg_r_640x214_bf599709.jpg", "t1": "京城欢乐亲子游", "t2": "在帝都过周末，不仅仅是城中游"},
              //   {"id": "0003", "imgUrl": "http://img1.qunarzz.com/sight/source/1510/6e/1ea71e2f04e.jpg_r_640x214_aa6f091d.jpg", "t1": "京城有好泉", "t2": "在帝都过周末，不仅仅是城中游"},
              //   {"id": "0004", "imgUrl": "http://img1.qunarzz.com/sight/source/1505/aa/7baaf8a851d221.jpg_r_640x214_1431200f.jpg", "t1": "京城人的周末撒欢地", "t2": "在帝都过周末，不仅仅是城中游"}
              // ]
            }
        }
    }
</script>
<style lang="stylus" scoped>
     .week_txt{
       line-height :.4rem;
       background :ghostwhite;
       padding-left:.1rem;
     }
     .week_box{
       padding-bottom :.2rem;
        img{
          width: 100%
        }
       .t1{
         margin-top:.04rem
         line-height :.3rem;
         font-size:.14rem;
         margin-left :.1rem;
       }
       .t2{
         font-size:.12rem;
         margin-left :.1rem;
         color:#616161;
       }
     }
</style>
